package com.yc.demo.controller;


import com.yc.demo.common.Pagation;
import com.yc.demo.common.PageData;
import com.yc.demo.common.ResponseEntity;
import com.yc.demo.entity.LoginLog;
import com.yc.demo.entity.SysUser;
import com.yc.demo.entity.queryparam.LoginLogParam;
import com.yc.demo.enums.ResponseEnum;
import com.yc.demo.service.ILoginLogService;
import com.yc.demo.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yc.demo 
 * @since 2019-04-10
 */
@Controller
@RequestMapping("/loginLog")
public class LoginLogController {

    @Autowired
    private ILoginLogService login;
    @GetMapping("/getAll")
    public ResponseEntity<PageData<LoginLog>> login( LoginLogParam loginLogParam){
        PageData<LoginLog> loginLogPageData = login.selectPage(loginLogParam);
        return new ResponseEntity(200,loginLogPageData,"sus");
    }

}

